<?php

namespace app\api\model;

class TieBaFile extends \app\common\model\TieBaFile
{
    /**
     * 删除帖子下面的文件
     * @param $tieId
     * @throws \think\Exception
     * @throws \think\exception\PDOException
     */
    public static function deleteByTie($tieId)
    {
        static::where([
            'tie_id' => $tieId,
        ])->delete();
    }
}